package com.aaa.mapper;

import com.aaa.commen.domain.ReceiveInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

public interface ReceiveInfoMapper extends BaseMapper<ReceiveInfo> {
    /**
     * 查询某个合同所有历史已收取详细租金信息
     * @param contractId
     * @return
     */
    List<ReceiveInfo> queryReceiveInfo(String contractId);

    /**
     * 根据发票号删除目标合同的某条租金信息
     * @param invoiceId
     * @return
     */
    int deleteReceiveInfo(int invoiceId);

    /**
     * 修改某合同的租金收取信息
     * @param receiveInfo
     * @return
     */
    int updateReceiveInfo(ReceiveInfo receiveInfo);
}
